﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using DC2010;
using DC2010.Objects;
using Xna.Base;
using RolePlaying;
using Microsoft.Xna.Framework;

namespace DC2010
{
    public partial class Hud
    {
        private void DrawStats()
        {
            SpriteBatch spriteBatch = screenManager.SpriteBatch;
            if (Root.I.GameSystem.SelectedMember != null)
            {
                CreatureData c = Root.I.GameSystem.SelectedMember;

                if ((Root.I.GameSystem.CurrentScreen == "Inventory") && (Root.I.GameSystem.CurrentSubScreen == "Statistics"))
                {

                    spriteBatch.Draw(TM.GetTex("Interface/StatsPanel"), RM.Get("StatsPanel").GetVector(), Color.White);
                    spriteBatch.DrawString(Fonts.DebugFont, "APPRENTICE FIGHTER", RM.Get("StatsPanel").GetVector() + new Vector2(15, 7), Color.White);
                    spriteBatch.DrawString(Fonts.DebugFont, "l MASTER NINJA", RM.Get("StatsPanel").GetVector() + new Vector2(15, 7 + 1 * 17), Color.White);
                    spriteBatch.DrawString(Fonts.DebugFont, "s MASTER WIZARD", RM.Get("StatsPanel").GetVector() + new Vector2(15, 7 + 2 * 17), Color.White);
                    spriteBatch.DrawString(Fonts.DebugFont, "r MASTER PRIEST", RM.Get("StatsPanel").GetVector() + new Vector2(15, 7 + 3 * 17), Color.White);

                    spriteBatch.DrawString(Fonts.DebugFont, "STRENGTH", RM.Get("StatsPanel").GetVector() + new Vector2(15, 7 + 5 * 17), Color.White);
                    spriteBatch.DrawString(Fonts.DebugFont, "DEXTERITY", RM.Get("StatsPanel").GetVector() + new Vector2(15, 7 + 6 * 17), Color.White);
                    spriteBatch.DrawString(Fonts.DebugFont, "WISDOM", RM.Get("StatsPanel").GetVector() + new Vector2(15, 7 + 7 * 17), Color.White);
                    spriteBatch.DrawString(Fonts.DebugFont, "VITALITY", RM.Get("StatsPanel").GetVector() + new Vector2(15, 7 + 8 * 17), Color.White);
                    spriteBatch.DrawString(Fonts.DebugFont, "ANTI-MAGIC", RM.Get("StatsPanel").GetVector() + new Vector2(15, 7 + 9 * 17), Color.White);
                    spriteBatch.DrawString(Fonts.DebugFont, "ANTI-FIRE", RM.Get("StatsPanel").GetVector() + new Vector2(15, 7 + 10 * 17), Color.White);

                    spriteBatch.DrawString(Fonts.DebugFont, c.Attributes.Strength.ToString(), RM.Get("StatsPanel").GetVector() + new Vector2(170, 7 + 5 * 17), Color.White);
                    spriteBatch.DrawString(Fonts.DebugFont, c.Attributes.Dexterity.ToString(), RM.Get("StatsPanel").GetVector() + new Vector2(170, 7 + 6 * 17), Color.White);
                    spriteBatch.DrawString(Fonts.DebugFont, c.Attributes.Wisdom.ToString(), RM.Get("StatsPanel").GetVector() + new Vector2(170, 7 + 7 * 17), Color.White);
                    spriteBatch.DrawString(Fonts.DebugFont, c.Attributes.Vitality.ToString(), RM.Get("StatsPanel").GetVector() + new Vector2(170, 7 + 8 * 17), Color.White);
                    spriteBatch.DrawString(Fonts.DebugFont, c.Attributes.AntiMagic.ToString(), RM.Get("StatsPanel").GetVector() + new Vector2(170, 7 + 9 * 17), Color.White);
                    spriteBatch.DrawString(Fonts.DebugFont, c.Attributes.AntiFire.ToString(), RM.Get("StatsPanel").GetVector() + new Vector2(170, 7 + 10 * 17), Color.White);
                }

            }
        }
    }
}
